import service from "@/utils/request"

export interface BottomWarehouseEntryOrderInterface{
    list: list[],
    total?: number,
    sums: sums[]
}

export interface list{
    lotNo: string,
    style: string,
    orderQty: number,
    stitchOutQty: number,
    stitchStock: number,
    soleStock: number,
    inSoleStock: number,
    schStock: number,
    matchStock: number
}

export interface sums{
    INSOLE_TOTAL: number,
    ORDER_TOTAL: number,
    SOLE_TOTAL: number,
    SCH_TOTAL: number,
    MATCH_TOTAL: number,
    STITCH_TOTAL: number
}

export interface FaceBottomParameter{
    inSoleMatch:string,
    inSoleStock:string,
    lotNo:string,
    matchStock:string,
    pageNum:number,
    pageSize:number,
    schStock:string,
    soleMatch:string,
    soleStock:string,
    stitchMatch:string,
    stitchStock:string,
    style:string
}

export const BottomWarehouseEntryOrder = (parms:FaceBottomParameter) => {
    return service.post<any,BottomWarehouseEntryOrderInterface>('/last/getSoleSupporting',parms)
}

export interface NumberdetailDataInterface {
    stitchSum: number,
    soleSum: number,
    matchSum: number,
    insoleSum: number,
    list: list[]
}

export interface list{
    sizeNo: number,
    orderQty: number,
    stitchStock: number,
    soleStock: number,
    inSoleStock: number,
    midSoleStock: number,
    matchQty: number
}

export const NumberdetailData = (parms:string) => {
    return service.get<any,NumberdetailDataInterface>(`/last/getSoleSupportingDetail/${parms}`)
}